package com.ojoin.trade.bpm.web.dao.impl;

import org.springframework.stereotype.Repository;

import com.ojoin.trade.bpm.web.dao.BpmDao;
import com.ojoin.trade.bpm.web.domain.Bpm;
import com.ojoin.trade.common.exception.DaoException;
import com.ojoin.trade.common.web.dao.impl.BaseDaoImpl;
@Repository
public class BpmDaoImpl extends BaseDaoImpl<Bpm> implements BpmDao {

	@Override
	public int updateProcInsIdByBusinessId(Bpm bpm) {
		String mapMethodName = new Exception().getStackTrace()[0].getMethodName();
		try {
			return sqlSessionTemplate.update(getSqlName(mapMethodName), bpm);
		} catch (Exception e) {
			throw new DaoException(String.format("语句：%s", getSqlName(mapMethodName)), e);
		}
	}

}
